package org.ypzhang.servlet;

import jakarta.servlet.*;

import java.io.IOException;

/**
 * Servlet 例子
 * @author ypzhang
 * @since 2025/6/10
 */
public class ServletDemo implements Servlet {
    @Override
    public void init(ServletConfig servletConfig) throws ServletException {

    }

    @Override
    public ServletConfig getServletConfig() {
        return null;
    }

    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        System.out.println("访问了 ServletDemo service。。。。。");
    }

    @Override
    public String getServletInfo() {
        return "";
    }

    @Override
    public void destroy() {

    }
}
